﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace KingSite.Library.Tools {
    public class CustomServerHeaderModule : IHttpModule {
        public void Init(HttpApplication context) {
            context.PreSendRequestHeaders += OnPreSendRequestHeaders;
        }

        public void Dispose() { }

        void OnPreSendRequestHeaders(object sender, EventArgs e) {
            // modify the "Server" Http Header
            HttpContext.Current.Response.Headers.Set("Server", "Jerry's Webserver");
        }
    } 
}
